package com.night.ibatis.typeHandler;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @Author: chen yang
 * @Date: 2024/12/12 20:59
 */
public interface TypeHandler<T> {

    void setParameter(PreparedStatement statement, int i, T value) throws SQLException;

    T getResult(ResultSet resultSet, String columnName) throws SQLException;
}
